@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row">
            <div class="panel panel-default">
                <div class="panel-heading">客服
                    <a href="{{ url("qrcode/edit") }}" class="btn btn-primary btn-sm active" role="button">添加</a></div>
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>名称</th>
                            <th>头像</th>
                            <th>id</th>
                            <th>昵称</th>
                            <th>微信</th>
                            <th>管理</th>
                        </tr>
                    </thead>
                    <tbody>
                    @foreach($staffList as $item)
                        <tr>
                            <td>{{ $item->id }}</td>
                            <td>{{ $item->kf_account }}</td>
                            <td>{{ $item->kf_headimgurl }}</td>
                            <td>{{ $item->kf_id }}</td>
                            <td>{{ $item->kf_nick }}</td>
                            <td>{{ $item->kf_wx }}</td>
                            <td>
                                <a href="{{ url("qrcode/edit",[$item->id]) }}">修改</a> | <a href="{{ url("qrcode/delete/".$item->id) }}">删除</a>
                            </td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>
            {!! $staffList->render() !!}
        </div>
    </div>

@endsection
